
<%--
    Document   : outsource_project
    Created on : Mar 20, 2010, 5:01:48 PM
    Author     : stanley.2007
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="common.jsp" %>
<%            // Main Application Logic Comes Here

%>

<HTML>
    <c:set var="title" value="MIC Tycoon ~ Outsource Project"/>
    <%@ include file="htmlheader.jsp" %>

    <body>
        <div id="resolution">

            <%@ include file="header.jsp" %>
            <%@ include file="menu.jsp" %>

            <div class="content">

                <div id="manage_project">
                <img src="<%= realURL("", url)%>images/titles/create-outsrc.png" border="0" />

                <c:set var = "action" value="outsource"/>
                <c:set var = "submit_label" value="Outsource!"/>

                <c:if test="${outsource_project != null}">
                    <c:set var = "action" value="edit_outsource"/>
                    <c:set var = "submit_label" value="Edit!"/>
                </c:if>

                <!-- TRAIN EMPLOYEE -->
                <form action="<%= realURL("", url)%>servlet/project/${project.project_id}/${action}" method="POST">
                    <div id="paper-holder-landscape-oursource">

                        <div id="deadline-holder-landscape">${project.due_turn}</div>

                        <div id="paper-content-over-project">
                            <c:if test="${project.man_hours_dot_net ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_dot_net !=0}"><div id="manhours-on">${project.man_hours_dot_net}</div></c:if>
                            <c:if test="${project.man_hours_c_sharp ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_c_sharp !=0}"><div id="manhours-on">${project.man_hours_c_sharp}</div></c:if>
                            <c:if test="${project.man_hours_jsp ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_jsp !=0}"><div id="manhours-on">${project.man_hours_jsp}</div></c:if>
                            <c:if test="${project.man_hours_php ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_php !=0}"><div id="manhours-on">${project.man_hours_php}</div></c:if>
                            <c:if test="${project.man_hours_ruby ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_ruby !=0}"><div id="manhours-on">${project.man_hours_ruby}</div></c:if>
                            <c:if test="${project.man_hours_mysql ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_mysql !=0}"><div id="manhours-on">${project.man_hours_mysql}</div></c:if>
                            <c:if test="${project.man_hours_mssql ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_mssql !=0}"><div id="manhours-on">${project.man_hours_mssql}</div></c:if>
                            <c:if test="${project.man_hours_oracle ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_oracle !=0}"><div id="manhours-on">${project.man_hours_oracle}</div></c:if>
                        </div>

                        <div id="paper-content-landscape">
                            <b>Parent Project </b>[<b>#${project_id}</b>] ${project.company.name}
                            <br/>
                            <b>Payout:</b> ${project.bidded_price_string}

                            <br/><b>Remaining Hours:</b>
                            
                            <img src="<%= realURL("", url)%>images/logos/logo-levels-h.png" border="0" />

                            <div id="outsource-grid">
                                <c:if test="${project.man_hours_dot_net > 0}">
                                    <input type="text" class="enter-hours" name="dot_net" value="${outsource_project.man_hours_dot_net}"/>
                                </c:if>
                            </div>

                            <div id="outsource-grid">
                                <c:if test="${project.man_hours_c_sharp > 0}">
                                    <input type="text" class="enter-hours" name="c_sharp" value="${outsource_project.man_hours_c_sharp}"/>
                                </c:if>
                            </div>

                            <div id="outsource-grid">
                                <c:if test="${project.man_hours_jsp > 0}">
                                    <input type="text" class="enter-hours"  name="jsp" value="${outsource_project.man_hours_jsp}"/>
                                </c:if>
                            </div>

                            <div id="outsource-grid">
                                <c:if test="${project.man_hours_php > 0}">
                                    <input type="text" class="enter-hours"  name="php" value="${outsource_project.man_hours_php}"/>
                                </c:if>
                            </div>

                            <div id="outsource-grid">
                                <c:if test="${project.man_hours_ruby > 0}">
                                    <input type="text" class="enter-hours"  name="ruby" value="${outsource_project.man_hours_ruby}"/>
                                </c:if>
                            </div>

                            <div id="outsource-grid">
                                <c:if test="${project.man_hours_mysql > 0}">
                                    <input type="text" class="enter-hours"  name="mysql" value="${outsource_project.man_hours_mysql}"/>
                                </c:if>
                            </div>

                            <div id="outsource-grid">
                                <c:if test="${project.man_hours_mssql > 0}">
                                    <input type="text" class="enter-hours"  name="mssql" value="${outsource_project.man_hours_mssql}"/>
                                </c:if>
                            </div>

                            <div id="outsource-grid">
                                <c:if test="${project.man_hours_oracle > 0}">
                                    <input type="text" class="enter-hours"  name="oracle" value="${outsource_project.man_hours_oracle}"/>
                                </c:if>
                            </div>

                            <div align="right">
                            Due Turn: <input type="text" class="enter-hours"  name="due_turn" value="${outsource_project.due_turn}"/>
                            Price: <input type="text" class="enter-hours" id="price-field"  name="price" value="${outsource_project.bidded_price}"/>
                            <c:if test="${outsource_project != null}">
                                <input type="hidden" name="project_id" value="${outsource_project.project_id}"/>
                            </c:if>

                            <input type="submit" value="${submit_label}" />
                            </div>

                        </div>
                    </div>

                </form>

                <div><a href="<%= realURL("", url)%>servlet/project/view">back to project list</a></div>

            </div>
            </div>
        </div>
    </BODY>
</HTML>
